<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: #000;
      }
      .box {
        position: relative;
        width: 300px;
        height: 200px;
        line-height: 200px;
        text-align: center;
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
        background-image: linear-gradient(to right, #fb7299, #ff5c7c);
        transition: all 0.5s;
        overflow: hidden;
      }
      .box::after {
        content: "";
        position: absolute;
        top: 100px;
        left: 0;
        width: 600px;
        height: 70px;
        background-image: linear-gradient(
          rgba(0, 0, 0, 0),
          rgba(255, 255, 255, 0.3),
          rgba(0, 0, 0, 0)
        );
        transform: rotate(-45deg) translate(0, -360px);
      }
      .box:hover {
        margin-top: -20px;
        box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
      }
      .box:hover::after {
        transition: 1s;
        transform: rotate(-45deg) translate(0, 100px);
      }
    </style>
  </head>
  <body>
    <div class="box">
      <span>点我</span>
    </div>
  </body>
</html>
